#include<iostream>

#include"./control.hpp"

int main(int args,char* argv[]){
    if(2!=args){
        printf("usage error:%s\nUsage:./mvc_server.cpp port\n",argv[0]);
        return -1;
    }

    //设置环境变量链接动态库
    system("export LD_LIBRARY_PATH=../ThirdLibrary/mysql-connector-c-6.1.11-linux-glibc2.12-x86_64/lib:$LD_LIBRARY_PATH");

    ns_control::start("0.0.0.0",atoi(argv[1]));

    return 0;
}